package com.bocai.duobao.model.param;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 前端下注提交参数
 * @author create by VIC.Huang
 * @date 2018/1/21
 */
@Data
@Accessors(chain = true)
public class BetParam implements Serializable {
    @NotNull(message = "游戏ID'gameId'不允许为空")
    private Long gameId;
    @NotBlank(message = "下注号码'betNum'不允许为空")
    private String betNum;
    @NotNull(message = "下注数'amount'不允许为空")
    @DecimalMin(value = "1", message = "下注数至少为1注")
    private Integer amount;
    @NotBlank(message = "下注期数'issueNo'不允许为空")
    private String issueNo;
}
